/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */
package com.poltman.dscentral.db.entity.dspace;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author z.ciok@poltman.com
 */
@Entity
@Table(name="resourcepolicy")
public class ResourcepolicyEntity implements Serializable {

	private static final long serialVersionUID = 8478642244875651430L;

	public ResourcepolicyEntity() {}
	
	@Id
    @SequenceGenerator(name="resourcepolicy_seq", sequenceName="resourcepolicy_seq")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="resourcepolicy_seq") 
    @Column(name="policy_id")
    private Integer policyId;	
	
	@Column(name="resource_type_id")
	private Integer resourceTypeId;
	
	@Column(name="resource_id")
	private Integer resourceId;
	
	@Column(name="action_id")
	private Integer actionId;
	
	@Column(name="eperson_id")
	private Integer epersonId;
	
	@Column(name="epersongroup_id")
	private Integer epersongroupId;
	
	@Column(name="start_date")
	private Date startDate;
	
	@Column(name="end_date")
	private Date endDate;

	public Integer getPolicyId() {
		return policyId;
	}
	public void setPolicyId(Integer policyId) {
		this.policyId = policyId;
	}

	public Integer getResourceTypeId() {
		return resourceTypeId;
	}
	public void setResourceTypeId(Integer resourceTypeId) {
		this.resourceTypeId = resourceTypeId;
	}
	
	public Integer getResourceId() {
		return resourceId;
	}
	public void setResourceId(Integer resourceId) {
		this.resourceId = resourceId;
	}

	public Integer getActionId() {
		return actionId;
	}
	public void setActionId(Integer actionId) {
		this.actionId = actionId;
	}

	public Integer getEpersonId() {
		return epersonId;
	}
	public void setEpersonId(Integer epersonId) {
		this.epersonId = epersonId;
	}

	public Integer getEpersongroupId() {
		return epersongroupId;
	}
	public void setEpersongroupId(Integer epersongroupId) {
		this.epersongroupId = epersongroupId;
	}

	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
}
